import request from '@/utils/request'

// 查询学年设置列表
export function listYear(query) {
  return request({
    url: '/basice_info/year/list',
    method: 'get',
    params: query
  })
}

// 查询学年设置详细
export function getYear(academicYearId) {
  return request({
    url: '/basice_info/year/' + academicYearId,
    method: 'get'
  })
}

// 新增学年设置
export function addYear(data) {
  return request({
    url: '/basice_info/year',
    method: 'post',
    data: data
  })
}

// 修改学年设置
export function updateYear(data) {
  return request({
    url: '/basice_info/year',
    method: 'put',
    data: data
  })
}

// 删除学年设置
export function delYear(academicYearId) {
  return request({
    url: '/basice_info/year/' + academicYearId,
    method: 'delete'
  })
}
